package com.dongdongshop.service.Impl;

import com.dongdongshop.pojo.Goods;
import com.dongdongshop.service.GoodsService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
    @Override
    public List<Goods> selectGoodsList() {
        return null;
    }

    @Override
    public int addGoods(Goods goods) {
        return 0;
    }

    @Override
    public Goods getGoodsById(Long id) {
        return null;
    }

    @Override
    public int updateGoods(Goods goods) {
        System.out.println("执行本地事物成功"+goods.getId());
        return 1;
    }

    @Override
    public int deleteGoodsById(Long id) {
        return 0;
    }
}
